package com.jsu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.model.activity.pojo.Agenda;

import java.util.List;

@Mapper
public interface AgendaMapper extends BaseMapper<Agenda> {

    @Select("Select SUM(likes) from agenda")
    Integer countLikes();

    @Select("Select SUM(agenda_subscriber_num) from agenda")
    Integer countSubs();

    @Select("Select SUM(looking) from agenda")
    Integer countViews();
}